
#include "editorMap_t.h"
editorMap_t::editorMap_t()
{
	showEvent = true;
}


editorMap_t::~editorMap_t()
{
}


int editorMap_t::draw( int x, int y )
{
	if ( mapBase_t::draw( x, y )==0 ){ return 0; }
	return 1;
}


int editorMap_t::update()
{
	return 1;
}


void editorMap_t::setTrans( int layer, int trans )
{
	if (layer<0||layer>=PIC_LAYERS){return;}
	vcPicTile::iterator iter;
	for ( iter=picLayer[layer].begin(); iter!=picLayer[layer].end(); iter++ )
	{
		iter->setTrans(trans);
	}
}